package com.bgIntlgn.client.entity.jishubu.papaerLibary;

import java.util.Date;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

@Table(name = "pic_paper_suites", constrain = "")
public class PicPaperSuite implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('pic_paper_suites_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = " primary key")
	private Long id;

	@Field(name = "create_date", type = "timestamp", constrain = "")
	private Date createDate;

	/**
	 * 所属零件ID
	 */
	@Field(name = "uid", type = "char(80)", constrain = "not null references element_subversions(uid) on update cascade on delete cascade")
	private String uid;

	/**
	 * 是否在库中
	 */
	@Field(name = "in_lib", type = "boolean", constrain = "not null default false")
	private boolean inLib;

	/**
	 * 是否损毁
	 */
	@Field(name = "broken", type = "boolean", constrain = "not null default false")
	private boolean broken;

	/**
	 * 备注
	 */
	@Field(name = "comment", type = "varchar(250)", constrain = "")
	private String comment;

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public boolean isInLib() {
		return inLib;
	}

	public void setInLib(boolean inLib) {
		this.inLib = inLib;
	}

	public boolean isBroken() {
		return broken;
	}

	public void setBroken(boolean broken) {
		this.broken = broken;
	}

}
